﻿namespace TextEditor
{
    using System;

    public class A_EnableJumpPrint : A_Action
    {
        public override string ActionName()
        {
            return "enablejumpprint";
        }

        public override int CheckState()
        {
            if (base.myOwnerDocument.EnableJumpPrint)
            {
                return 1;
            }
            return 0;
        }

        public override bool Execute()
        {
            base.myOwnerDocument.EnableJumpPrint = !base.myOwnerDocument.EnableJumpPrint;
            base.myOwnerDocument.Refresh();
            return true;
        }
    }
}

